﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：OneCanteenSummaryReportDetailInfo
// 文件功能描述：一食堂详细汇总报表业务逻辑层
//
// 
// 创建标识：2012-05-22 王冲
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO.WaiGaoQiao;
using System.Data;

namespace Model.WaiGaoQiao
{
    public class OneCanteenSummaryReportDetailInfo
    {
        /// <summary>
        /// 开始日期
        /// </summary>
        public string StartTime
        {
            get;
            set;
        }
        /// <summary>
        /// 结束日期
        /// </summary>
        public string EndTime
        {
            get;
            set;
        }
        /// <summary>
        /// 姓名
        /// </summary>
        public string PNAME
        {
            get;
            set;
        }

        private DataAccessOneCanteenSummaryReportDetail dar;
        private int OneCanteenSummaryReportDetailcount;
        public int _OneCanteenSummaryReportDetailcount
        {
            get { return OneCanteenSummaryReportDetailcount; }
        }

        public OneCanteenSummaryReportDetailInfo()
        { }

        /// <summary>
        /// 获取一食堂汇总表
        /// </summary>
        /// <returns></returns>
        public DataSet BindList(int pagesize, int startindex,string strWhere)
        {
            dar = new DataAccessOneCanteenSummaryReportDetail();
            return dar.BindList(pagesize, startindex,strWhere);
        }

        public DataSet GetListAll(string strWhere)
        {
            dar = new DataAccessOneCanteenSummaryReportDetail();
            return dar.GetListAll(strWhere);
        }

        public int GetListAllCount(string strWhere)
        {
            dar = new DataAccessOneCanteenSummaryReportDetail();
            return dar.GetListAllCount(strWhere);
        }

        /// <summary>
        /// 获取每个餐次的菜的数量与金额合计
        /// </summary>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public DataSet GetOneHJ(string strWhere)
        {
            dar = new DataAccessOneCanteenSummaryReportDetail();
            return dar.GetOneHJ(strWhere);
        }

        /// <summary>
        /// 获取总数量和金额合计
        /// </summary>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public DataSet GetAllHJ(string strWhere)
        {
            dar = new DataAccessOneCanteenSummaryReportDetail();
            return dar.GetAllHJ(strWhere);
        }
    }
}
